<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@page import="com.ibt.entity.BugEntry"%>
<%@ page language="java" import="java.sql.*,java.util.*"%>
<title>.::: Intelligent Bug Tracker :::.</title>

<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script src="<%=application.getContextPath() %>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="<%=application.getContextPath() %>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="<%=application.getContextPath() %>/css/bug.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<%=application.getContextPath()%>/css/datatable.css"/>
<link rel="stylesheet" href="<%=application.getContextPath()%>/css/jquery-ui-1.8.17.custom.css"/>
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery-1.6.min.js"></script>	
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery-ui-1.8.17.custom.min.js"></script>	
<script type="text/javascript" language="javascript" src="<%=application.getContextPath()%>/js/jquery.dataTables.js"></script>
<script language="javascript" type="text/javascript" src="<%=application.getContextPath()%>/js/tablefilter.js"></script>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#reportTable').dataTable();
	} );
</script>
</head>

<body onload="MM_preloadImages('<%=application.getContextPath() %>/images/home-r.gif','<%=application.getContextPath() %>/images/admin-r.gif','<%=application.getContextPath() %>/images/proj-r.gif','<%=application.getContextPath() %>/images/bug-r.gif')">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="900" height="50" align="left" valign="top" background="<%=application.getContextPath() %>/images/header.gif"> 
    <table width="900" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="341">&nbsp;</td>
          <td width="499" align="left" valign="top"><table width="408" border="0" cellspacing="0" cellpadding="0">
              <tr>
          <td width="96" align="left" valign="top"><a href="<%=application.getContextPath() %>/newbug/showall.do"  onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','<%=application.getContextPath() %>/images/home-r.gif',1)"><img src="<%=application.getContextPath() %>/images/home-r.gif" name="Image5'" width="127" height="50" border="0" id="Image5" /></a></td>
    <td width="116" align="left" valign="top"><a href="<%=application.getContextPath() %>/jsp/admin.jsp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','<%=application.getContextPath() %>/images/admin-r.gif',1)"><img src="<%=application.getContextPath() %>/images/admin.gif" name="Image6" width="127" height="50" border="0" id="Image6" /></a></td>
    <td width="96" align="left" valign="top"><a href="<%=application.getContextPath() %>/jsp/projectmanager.jsp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','<%=application.getContextPath() %>/images/proj-r.gif',1)"><img src="<%=application.getContextPath() %>/images/proj.gif" name="Image7" width="148" height="50" border="0" id="Image7" /></a></td>
     <td width="103" align="left" valign="top"><a href="<%=application.getContextPath() %>/jsp/bugmanager.jsp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','<%=application.getContextPath() %>/images/bug-r.gif',1)"><img src="<%=application.getContextPath() %>/images/bug.gif" name="Image8" width="127" height="50" border="0" id="Image8" /></a></td>
              </tr>
          </table></td>
          <td width="60">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td width="900" height="800" align="left" valign="top" background="<%=application.getContextPath() %>/images/header-blue.gif" style="background-position:top; background-repeat:no-repeat">
    <table width="900" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="174" align="left" valign="top" background="<%=application.getContextPath() %>/images/bottmobg.gif" style="background-position:bottom; background-repeat:no-repeat"><table width="900" border="0" cellspacing="0" cellpadding="0">
          
          <tr>
            <td width="57" height="186">&nbsp;</td>
            <td width="211" align="left" valign="top"><table width="211" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="<%=application.getContextPath() %>/images/logo.gif" width="211" height="161" /></td>
                </tr>
            </table></td>
            <td width="632" align="left" valign="top"><table width="632" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="122" align="left" valign="top"><table width="632" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="53">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="76" align="right" valign="top"><span class="side-he1"><br />
                        Intelligent Bug Tracker</span> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><table width="632" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2"></td>
                      <td height="2"></td>
                      <td height="2"></td>
                    </tr>
				  <tr>
                <td align="right"><a href="<%=application.getContextPath() %>/login/logout.do"><img src="<%=application.getContextPath() %>/images/signout.gif" /></a></td>
              </tr>
			    </table>
				</td>
              </tr>
            </table></td>
          </tr>
		  
        </table></td>
      </tr>
	  <tr>
                <td align="left" valign="top">  
                
                <div class="boxIFS2">
	 
	  <div id="demo">
	    <table width="100%" id="reportTable" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
	    <thead>
          <tr>
            <th width="30" height="30" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"  style="background-repeat:repeat-x">S.No</th>
            <th width="210" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Title </th>
            <th width="109" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Case Name </th>
            <th width="109" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">OpenedBy</th>
            <th width="109" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Status</th>
            <th width="109" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">BuildID</th>
            <th width="109" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Open Date</th>
            <th width="109" align="center" valign="middle" background="<%=application.getContextPath()%>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Priority</th>
          </tr>
          </thead>
          <tbody>
           <%  
           List<BugEntry> oplst=(List<BugEntry>)request.getAttribute("buglist");
           if(oplst!=null){
            	 
      	      	for(int i=0;i<oplst.size();i++){ 
           %>
          <tr >
            <td bgcolor="#FFFFFF" align="center"><%=i+1 %></td>
            <td bgcolor="#FFFFFF" width="210"  style="text-decoration: underline;  color:blue" align="center" valign="top" ><a href="<%=application.getContextPath() %>/newbug/openBug.do?refNo=<%=oplst.get(i).getId()%>"><%=oplst.get(i).getBugcode() %></a></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" ><%=oplst.get(i).getBugname() %></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" ><%=oplst.get(i).getCreatedEname() %></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" ><%=oplst.get(i).getBugstatus() %></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" ><%=oplst.get(i).getBuildId()%></td>

            <td bgcolor="#FFFFFF" align="center" valign="top" ><%=oplst.get(i).getOpenDate() %></td>
            <td bgcolor="#FFFFFF" align="center" valign="top" ><%=oplst.get(i).getPriority()%></td>
          </tr>
       <%
 			
   	      	}
           }
       %>
       </tbody>
        </table>
     	  </div>
	  </div>
                 </td>
              </tr>
    </table>
	</td>
  </tr>
  <tr>
    <td height="34" bgcolor="#2a44b4">&nbsp;</td>
  </tr>
</table>
</body>
</html>
